import axios from '@/libs/api.request'

export const getfreeGiftList = data => axios.request({ // 满赠列表
  url: '/marketing/promotion/list',
  method: 'post',
  data
})

export const delfreeGift = data => axios.request({ // 删除
  url: '/marketing/promotion/delete',
  method: 'post',
  data
})

export const downfreeGift = data => axios.request({ // 下架
  url: '/marketing/promotion/status/update',
  method: 'post',
  data
})

export const detailfreeGift = data => axios.request({ // 查看
  url: '/marketing/promotion/get',
  // url: 'http://10.101.3.123:8895/marketing/promotion/get',
  method: 'post',
  data
})

export const addFreeGift = data => axios.request({ // 新增
  url: '/marketing/promotion/save',
  // url: 'http://10.101.3.123:8895/marketing/promotion/save',
  method: 'post',
  data
})

export const editFreeGift = data => axios.request({ // 编辑
  url: '/marketing/promotion/update',
  // url: 'http://10.101.3.123:8895/marketing/promotion/update',
  method: 'post',
  data
})
